﻿<controls:ChildWindow x:Class="HackingSilverlightCodeBrowser.MyCodeBlock"
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls" 
           xmlns:hscb="clr-namespace:HackingSilverlightCodeBrowser"
           Title="MyCodeBlock">
    <Grid x:Name="LayoutRoot" Margin="2" ShowGridLines="False">
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition Height="35"/>
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions> 
        
        <StackPanel Orientation="Horizontal" Grid.Row="1" >
            <TextBlock Text="TAGS:" FontWeight="Bold" Margin="0,2,5,0" /> 
            <hscb:WrapPanel x:Name="TagWrapPanel" Height="60" > 
            </hscb:WrapPanel>
        </StackPanel>

        <Button x:Name="BackBtn" Content="&lt;" Width="23" Height="23" Click="BackBtn_Click"
                HorizontalAlignment="Left" Margin="0,12,0,0" Grid.Row="2" />

        <Button x:Name="NextBtn" Content="&gt;" Width="23" Height="23" Click="NextBtn_Click"
                HorizontalAlignment="Left" Margin="52,12,0,0" Grid.Row="2" />
        
        <Button x:Name="OKButton" Content="OK" Click="OKButton_Click" Width="75" Height="23" 
                HorizontalAlignment="Right" Margin="0,12,0,0" Grid.Row="2" />
        
        <TextBox x:Name="SampleCodeBox" Grid.Row="0" TextWrapping="Wrap" VerticalScrollBarVisibility="Visible"
                 ScrollViewer.VerticalScrollBarVisibility="Visible" ></TextBox>
    </Grid>
</controls:ChildWindow>